//
//  MtimeNetWorkTools.m
//  Mtime2.0
//
//  Created by 凉气的Mac on 16/9/5.
//  Copyright © 2016年 凉气的Mac. All rights reserved.
//

#import "MtimeNetWorkTools.h"

@implementation MtimeNetWorkTools

+(instancetype)sharedManager{
    
    static MtimeNetWorkTools * instance;
    
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        NSURL *url = [NSURL URLWithString:@"http://api.m.mtime.cn/"];
        
        NSURLSessionConfiguration *con = [NSURLSessionConfiguration defaultSessionConfiguration];
        
       // con.timeoutIntervalForRequest = 15;
        
        instance = [[self alloc] initWithBaseURL:url sessionConfiguration:con];
        instance.responseSerializer.acceptableContentTypes = [NSSet setWithObjects:@"application/x-javascript",@"application/json", @"text/json", @"text/javascript",@"text/html",nil];
        
    });
    
    return instance;
}

@end
